<?php
require("conexao.php");
require_once 'ti.php';

session_start();
if (!isset($_SESSION["user"]["LOGIN"]) and !isset($_SESSION["user"]["SENHA"]))
	{
print "<script type= 'text/javascript'> location.href = 'index.php?link=5'</script>";
	}

?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>SGF</title>

<link rel="stylesheet" type="text/css" href="resources/css/estilo.css" />


<!-- GLOBAL -->
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.5.2/jquery.min.js"></script>
<!-- VALIDACAO -->
<script src="js/validacao.js" type="text/javascript"></script>
<script src="js/validar-cadastro.js" type="text/javascript"></script>
<!-- NOTIFICAÇÃO -->
<script src="js/jquery.jgrowl.js"></script>

<!-- SPIN BUTTON -->
<script type="text/javascript" src="js/jquery-spin.js"></script>

<!-- CALENDARIO -->
 <!--<link href="resources/css/default.css" rel="stylesheet" type="text/css"/>-->
<link href="resources/css/jquery.click-calendario-1.0.css" rel="stylesheet" type="text/css"/> 
<script type="text/javascript" src="js/jquery.click-calendario-1.0-min.js"></script>		


<!-- AUTO COMPLETE -->
<script type="text/javascript" src="js/autocomplete.js"></script>

<!-- DATA TABLES -->

<script src="js/jquery.DataTables.min.js" type="text/javascript"></script>
<script src="js/jquery.jeditable.js" type="text/javascript"></script>
<script src="js/jquery.jpaging.js" type="text/javascript"></script>
<script src="js/jquery-ui.js" type="text/javascript"></script>
<script src="js/jquery.validate.js" type="text/javascript"></script>
<script src="js/jquery.DataTables.editable.js" type="text/javascript"></script>



</head>

<body>
<hl><?php startblock('title'); 
endblock();
?></hl>
<div id="fundo">

<div id="tela">

<div id="cabecalho">

<?php
    require("cabecalho2.php");
?>
</div>

<div id="menu">
<?php
    require("menu2.php");
	?>	
</div>

<div id="link">
<?php
    if (isset($_GET["link"])){
	$link = $_GET["link"];
	}else{
	$link = "";
	}
	
	$pag[1] = "movimento.php";
	$pag[2] = "contas.php";
	$pag[3] = "add_evento.php";
	$pag[4] = "home.php";
	$pag[5] = "login.php";
	$pag[6] = "frm_cliente.php";
	$pag[7] = "login_cli.php";
	$pag[8] = "logout_cli.php";
	$pag[9] = "lst_banco2.php";
	$pag[10] = "banco.php";
	$pag[11] = "op_novaconta.php";
	$pag[12] = "lst_contabanco.php";
	$pag[13] = "frm_contabanco.php";
	$pag[14] = "op_contabanco.php";
	$pag[15] = "";
	$pag[16] = "";
	$pag[17] = "";
	$pag[18] = "";
	
	if(!empty($link))
	{
	if (file_exists($pag[$link]))
	{
	require($pag[$link]);
	}
	else
	{
	require("home.php");
	}
	}
	else 
	{
	require("home.php");
	}
	
?>   
<div id="rodape">

</div> 
</div>



</div>
</div>
</body>
</html>
